package com.coffee.order.service.inquire.dao;

import com.coffee.order.api.inquire.query.InquireOrderPlanQuery;
import com.coffee.order.service.inquire.bean.InquireOrderPlan;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InquireOrderPlanDao {
    public InquireOrderPlan findById(Integer id);

    public InquireOrderPlan findByIdForUpdate(Integer id);

    public List<InquireOrderPlan> findByIds(@Param("idList") List<Integer> idList);

    public List<InquireOrderPlan> findByInquireOrderId(Integer inquireOrderId);

    public Integer count(@Param("param") InquireOrderPlanQuery param);

    public List<InquireOrderPlan> page(@Param("param") InquireOrderPlanQuery param, @Param("offset") Integer offset, @Param("rows") Integer rows);


    public List<InquireOrderPlan> list(@Param("param") InquireOrderPlanQuery param);

    public InquireOrderPlan findFirst(@Param("param") InquireOrderPlanQuery param);

    public Integer insert(InquireOrderPlan param);

    Integer insertBatch(List<InquireOrderPlan> list);

    public void updateById(@Param("param") InquireOrderPlan param);

    public Integer deleteById(Integer id);

    public Integer deleteByIds(List<Integer> idList);

}